package com.cockybook.poemspider.beans;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;


@Entity
public class URLBean {
    @Id
    private String md5;

    @Column(length = 1024)
    private String url;
    private int status; //0： 未处理   1：已经处理

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "URLBean{" +
                "md5='" + md5 + '\'' +
                ", url='" + url + '\'' +
                ", status=" + status +
                '}';
    }
}
